//
//  FirstPage.m
//  xjairOA
//
//  Created by apple on 16-1-28.
//  Copyright (c) 2016年 net. All rights reserved.
//

#import "FirstPage.h"
#import "Constants.h"

@implementation FirstPage

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.appDelegate = [UIApplication sharedApplication].delegate;
}

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    //NSLog(@"segue's identifier is %@",segue.identifier);
    if ([segue.identifier isEqual:@"exitSegue"]) {
        //NSLog(@"segue = exitSegue");
        [self.appDelegate.manager
         GET:exit
         parameters:nil
         success:^(AFHTTPRequestOperation *operation, id responseObject) {
            
         } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
             NSLog(@"获取服务器响应出错");

         }];
    }
    
}
@end
